package com.bruce.asurada.sso.client.dto;

import lombok.Data;

/**
 * 登录响应DTO
 * 
 * @author Bruce
 */
@Data
public class LoginResponseDto {

    /**
     * 访问令牌
     */
    private String accessToken;

    /**
     * 刷新令牌
     */
    private String refreshToken;

    /**
     * 令牌类型
     */
    private String tokenType = "Bearer";

    /**
     * 过期时间（秒）
     */
    private Long expiresIn;

    /**
     * 用户信息
     */
    private UserInfoDto userInfo;

    public LoginResponseDto() {}

    public LoginResponseDto(String accessToken, String refreshToken, Long expiresIn, UserInfoDto userInfo) {
        this.accessToken = accessToken;
        this.refreshToken = refreshToken;
        this.expiresIn = expiresIn;
        this.userInfo = userInfo;
    }
}